import React from 'react'
import {Image, Text, View} from "react-native";


import {createStackNavigator} from 'react-navigation-stack';
import {createAppContainer} from 'react-navigation';

import MainTab from './MainTab';
import OrderGrabbing from './Home/OrderGrabbing';
import Order from './Home/Order';
import OrderDetail from './Home/OrderDetail';

import ChangeName from './Account/ChangeName';
import Withdraw from './Account/Withdraw';
import WithdrawSet from './Account/WithdrawSet';
import Setting from './Account/Setting';
import RetrievePsw from './Account/RetrievePsw';
import Guide from './Account/Guide';
import GuideDetail from './Account/GuideDetail';
import Recharge from './Account/Recharge';
import History from './Account/History';
import RechargeSub from './Account/RechargeSub';
import Html from './Account/Html';
import MyInvestment from './Money/MyInvestment';
import InvestmentDetail from './Money/InvestmentDetail';
import TeamMembers from './Team/TeamMembers';
import ReferralReward from './Team/ReferralReward';
import InviteRules from './Team/InviteRules';
import TeamReward from './Team/TeamReward';
import ResetPsw from './Home/ResetPsw';
import ActivityShareFission from './Activity/ActivityShareFission'

const Tab = createAppContainer(MainTab);
const stackNavigator = createStackNavigator(
    {
        Main: {
            screen: Tab,
        },
        OrderGrabbing:{
            screen:OrderGrabbing
        },
        Order:{
            screen:Order,
        },
        OrderDetail:{
            screen:OrderDetail
        },
        ChangeName:{screen:ChangeName},
        Withdraw:{screen:Withdraw},
        WithdrawSet:{screen:WithdrawSet},
        Setting:{screen:Setting},
        RetrievePsw:{screen:RetrievePsw},
        Guide:{screen:Guide},
        GuideDetail:{screen:GuideDetail},
        Recharge:{screen:Recharge},
        RechargeSub:{screen:RechargeSub},
        Html:{screen:Html},
        History:{screen:History},
        MyInvestment:{screen:MyInvestment},
        InvestmentDetail:{screen:InvestmentDetail},
        TeamMembers:{screen:TeamMembers},
        ReferralReward:{screen:ReferralReward},
        InviteRules:{screen:InviteRules},
        TeamReward:{screen:TeamReward},
        ResetPsw:{screen:ResetPsw},
        ActivityShareFission:{screen:ActivityShareFission},

    },{
        headerMode: 'none',
        initialRouteName: 'Main',
        animationEnabled:false,
        onTransitionStart:()=>{
            console.log("onTransitionStart1111")
        },
        onTransitionEnd:()=>{
            console.log("onTransitionEnd222")
        }
    }

)

const appStackNavigator = createAppContainer(stackNavigator);
export default appStackNavigator;
